#include "BSFrequency.h"

BSFrequency::BSFrequency()
{
	m_name = "Sample Rate";
}

BSFrequency::~BSFrequency()
{

}

void BSFrequency::Update()
{	
	if (m_mouseDidIntersect && m_mouseButtonWasReleased)
	{
		m_sound->SetFrequency(m_amount);

		m_mouseButtonWasReleased = false;
		m_mouseDidIntersect = false;
	}
}